package com.xz.knowledgeDuplication.pattern.builder;

import lombok.AllArgsConstructor;

/**
 * 指挥者类
 *
 * @author 召
 * @date 2022-03-06 16:37:54
 */
@AllArgsConstructor
public class Director {

    private Builder builder;

    public Bike construct() {
        builder.buildFrame();
        builder.buildSeat();
        return builder.createBike();
    }
}
